// createApp创建vue实例
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'normalize.css'// 初始化样式
import '@/styles/common.less'
// 引入全局插件
import componentPlugin from '@/components'

import defineDirective from '@/directives'
// const app = createApp(App)
// defineDirective(app)
// 调用mutation函数
// store.commit('user/setProfile')
// 链式调用，本质：
// use方法用注册插件
// mount方法用来挂载真实dom,渲染dom
createApp(App).use(store).use(router).use(componentPlugin).use(defineDirective).mount('#app')
